<!-- 启动页 -->
<template>
  <div class="launch-page">
    <div class="launch-img">
      <img src="../../assets/imgs/launch_page.png" alt="" srcset="" />
    </div>
    <div class="launch-text">
      <img src="../../assets/imgs/launch_icon.png" alt="" srcset="" />
      <span> COVID-19 Vaccine fund </span>
    </div>
    <p>Earn 100000rs every day</p>
  </div>
</template>

<script>
import { getStorage } from "@/utils/common";
export default {
  created() {
    setTimeout(() => {
      const tokenStr = getStorage("token");
      if (tokenStr) {
        this.$router.replace("/market");
      } else {
        this.$router.replace("/login");
      }
    }, 2000);
  },
};
</script>

<style lang="scss" scoped>
.launch-page {
  height: 100%;
  min-height: 100vh;
  background-color: #fff;
  .launch-text {
    margin: 60px 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      width: 30px;
      height: 30px;
      margin: 0 10px 0 0;
    }
    font-size: 20px;
    color: #081647;
    font-weight: 700;
  }
  p {
    text-align: center;
    color: #adb4c7;
  }
}
</style>



